package com.trickytriad.model
{
	/**
	 * NewsData "bean".  Represents a news entry pulled from the server.
	 **/
	[Bindable]
	public class NewsData
	{
		// News ID
		public var newsId:int;
		// Date of the news
		public var newsDate:Date;
		// Author
		public var author:String;			
		// Text		
		public var text:String;		
		// Title
		public var title:String;

		/**
		 * Constructor that generates a NewsData item.
		 **/
		public function NewsData (in_newsId:int, in_newsDate:Date, in_author:String, in_text:String, in_title:String)
		{
			trace("Generating new NewsData object.");
			newsId = in_newsId;
			newsDate = in_newsDate;
			author = in_author;
			text = in_text;
			title = in_title; 
		} 

	}
}